import request from '@/utils/request'

// 查询商户车辆售卖列表
export function listposSell(query) {
  return request({
    url: '/pos/posSell/list',
    method: 'get',
    params: query
  })
}

// 查询商户车辆售卖详细
export function getposSell(id) {
  return request({
    url: '/pos/posSell/' + id,
    method: 'get'
  })
}

// 新增商户车辆售卖
export function addposSell(data) {
  return request({
    url: '/pos/posSell',
    method: 'post',
    data: data
  })
}

// 修改商户车辆售卖
export function updateposSell(data) {
  return request({
    url: '/pos/posSell',
    method: 'put',
    data: data
  })
}

// 删除商户车辆售卖
export function delposSell(id) {
  return request({
    url: '/pos/posSell/' + id,
    method: 'delete'
  })
}

// 导出商户车辆售卖
export function exportposSell(query) {
  return request({
    url: '/pos/posSell/export',
    method: 'get',
    params: query
  })
}

// /pos/posRent/submit

export function submitposSell(data) {
  return request({
    url: '/pos/posSell/submit',
    method: 'post',
    data
  })
}

export function posSellban(data) {
  return request({
    url: '/pos/posSell/ban',
    method: 'post',
    data
  })
}